/*
 * @Author: MB's X13 374870361@qq.com
 * @Date: 2024-05-16 11:32:35
 * @LastEditors: MB's X13 374870361@qq.com
 * @LastEditTime: 2024-05-16 11:45:36
 * @Description:
 */
package ch2_bool

import "fmt"

var (
	// 定义全局bool变量 g_ok
	g_ok bool
)

func returnTrue() bool {
	return true
}

func Print() {
	fmt.Println("g_ok is: ", g_ok)
	g_ok = returnTrue()
	fmt.Println("g_ok is: ", g_ok)

	// 定义一个局部bool变量 isOk
	isOk := returnTrue()
	fmt.Println("isOk is: ", isOk)
}
